package cn.edu.bupt.freewings.forum.server.Utility;

import cn.edu.bupt.freewings.forum.common.CommonType;

public class MessageConstants {
	public final static CommonType.Empty EMPTY_MESSAGE = getEmptyMessage();
	public final static CommonType.Boolean TRUE_MEESSAGE = getBooleanMessage(true);
	public final static CommonType.Boolean FALSE_MEESSAGE = getBooleanMessage(false);


	private static CommonType.Empty getEmptyMessage() {
		CommonType.Empty.Builder builder = CommonType.Empty.newBuilder();
		return builder.build();
	}
	
	private static CommonType.Boolean getBooleanMessage(boolean value){
		CommonType.Boolean.Builder builder = CommonType.Boolean.newBuilder();
		builder.setValue(value);
		return builder.build();
	}
}
